Your Universal Remote Control Center
RemoteCentral.com
Custom Installers' Lounge Forum - View Post
Previous section Next section Previous page Next page Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Page 1 of 2
Topic:
SAMSUNG DLP RS-232 HEX...AARGH!!
This thread has 22 replies. Displaying posts 1 through 15.
Post 1 made on Tuesday August 8, 2006 at 10:53
rolo
Long Time Member
Joined:
Posts:
January 2003
241
Hey Guys -

Here I am again with another hex problem...

here are some files

[Link: harmonysoundandvision.com]

[Link: harmonysoundandvision.com]

[Link: harmonysoundandvision.com]

These are explanations of the serial protocol for a samsung DLP

I cannot figure it out...I have tried over and over and it just isnt making sense to me...I am calling out to the ubergeeks to help on this one...

If i could just get a power code or somethign with a brief explanation...here is what I have tried

(Incidentally I have tried the first one without the waits also)

String:
{

}
}
BUTTON_EVENT [dvTP,1]//Multiple Strings Multiple Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6,$0D"
Wait 10
{
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5,$0D"
Wait 10
{
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4,$0D"
Wait 10
{
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}
}
}
}

BUTTON_EVENT [dvTP,2]//Multiple Strings No Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9"
}
}
BUTTON_EVENT [dvTP,3]//Multiple Strings One Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}
BUTTON_EVENT [dvTP,4]//One String Several Carriage Returns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6,$0D,$08,$02,$00,$00,$00,$00,$E5,$0D,$08,$03,$00,$00,$00,$00,$E4,$0D,$04,$12,$00,$D9,$0D"
}
}

BUTTON_EVENT [dvTP,5]//One String One Carriage REturn
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6,$08,$02,$00,$00,$00,$00,$E5,$08,$03,$00,$00,$00,$00,$E4,$0D,$04,$12,$00,$D9,$0D"
}
}

BUTTON_EVENT [dvTP,6]//One String No Carriage REturn
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6,$08,$02,$00,$00,$00,$00,$E5,$08,$03,$00,$00,$00,$00,$E4,$0D,$04,$12,$00,$D9"
}
}





Thanks ahead of Time

Rolo
Post 2 made on Tuesday August 8, 2006 at 11:02
cma
Super Member
Joined:
Posts:
August 2003
3,044
Still looking at it, first of all there should not be any carriage returns...
Post 3 made on Tuesday August 8, 2006 at 11:56
tsvisser
Founding Member
Joined:
Posts:
March 2002
1,228
uh, what platform are you writing this on?

if I send "$08,$01,$20" in most platforms,
the target is going to receive

$08,$01,$20

in Crestron, the escape sequence would look like
\x08\x01\x00

in AppleScripts, it would look like
(ASCII character 8) & (ASCII character 1) & (ASCII character 20)

etc...

I think the first obstacle you have to find is the proper escape sequencing to display hex character as hex characters, rather than as literal expressions of ASCII characters representing hex characters. Does that make sense? I could be wrong, perhaps I just don't recognize the string format that your examples show.
[Link: imdb.com]
Post 4 made on Tuesday August 8, 2006 at 12:01
tsvisser
Founding Member
Joined:
Posts:
March 2002
1,228
just in to explain this clearer, and forgive me if this is basic for you, it caught me up the first time I saw it myself.

"Hello World"
returns

Hello World

other methods of writing this could also be...

Hello%20World
\x48\x65\x6C\x6C\x6F\x20\x57\x6F\x72\x6C\x64
or in your paradigm
$48,$65,$6C,$6C,$6F,$20,$57,$6F,$72,$6C,$64

so, lets say you wanted to send a space or " ", or %20, or \x20, or $20

if you send "$20" the target is going to receive
$20
not the space that you originally intended.

if the $cc escape character construct is true, then perhaps your solution is as easy as getting rid of the quotation marks? can't say for sure until I know what platform your writing for.
[Link: imdb.com]
Post 5 made on Tuesday August 8, 2006 at 12:16
cma
Super Member
Joined:
Posts:
August 2003
3,044
It looks like you are using NetLinx,

OK, this is what I am guessing, it is kind of messed up, if you look at page 3 of the protocol3 xls spreadsheet the following HEX items of the example givin in the .doc never change:

0x080x010x000x000x00P1Checksum

0x080x020x000x000x00P2Checksum

0x080x030x000x000x00P3Checksum


0x040x12commandChecksum

Replace the P1,P2,P3 and command values with the values listed under the headings on Page 1 of the protocol 3 XLS spreadsheet. Now the fun part is to figure the checksum, you can either figure out each one manually or create a subroutine to figure it out in the program you are writing.
formula=CS = ~(08+ 01 + 0 + 0 + 0 + Parameter1,2or3 + 11) +1
which means you add the 8+1+0+0+0+0+11 and subtract that total from $FF and then add 1 which gives you E6. That is the formula they are using for the first three parameter lines, the formula they are using for the command line is: CS=~(04+12+command)+1

The protocol doesn't say anything about the amount of time required between each command so you could try it like the following:
(example contrast command:)
{
send_string dvTV,"$08,$01,$00,$00,$00,$00,$E6"
wait 2 send_string dvTV,"$08,$02,$00,$00,$00,$01,$E4"
wait 4 send_string dvTV,"$08,$03,$00,$00,$00,$5A,$8A"
wait 6 send_string dvTV,"$04,$12,$0B,$DF"
}
AV1 input would be:
{
send_string dvTV,"$08,$01,$00,$00,$00,$00,$E6"
wait 2 send_string dvTV,"$08,$02,$00,$00,$00,$00,$E5"
wait 4 send_string dvTV,"$08,$03,$00,$00,$00,$01,$E3"
wait 6 send_string dvTV,"$04,$12,$0A,$E0"
}
Post 6 made on Tuesday August 8, 2006 at 12:21
cma
Super Member
Joined:
Posts:
August 2003
3,044
Also be sure your online event has this:
DATA_EVENT[dvTV]{
ONLINE:{
SEND_COMMAND dvTV,"'SET BAUD 19200,N,8,1'"
}
}
Post 7 made on Tuesday August 8, 2006 at 13:47
Proggieus
Long Time Member
Joined:
Posts:
October 2005
434
i would get rid of the cariage returns and write my code to wait for the ack
so
BUTTON_EVENT [dvTP,3]//Multiple Strings One Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}


BUTTON_EVENT [dvTP,3]//Multiple Strings One Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
Wait_until(sam_buffer="'$03,$0C,$F1'")
{
clear_buffer,sam_buffer
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
Wait_until(sam_buffer="'$03,$0C,$F1'")
{
clear_buffer,sam_buffer
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
Wait_until(sam_buffer="'$03,$0C,$F1'")
{
clear_buffer,sam_buffer
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}
}
}
}

I hate the fact that you cant use any code formatting on this site argh
OP | Post 8 made on Tuesday August 8, 2006 at 16:55
rolo
Long Time Member
Joined:
Posts:
January 2003
241
Thanks stvisser, but in netlinx that is the right syntax...CMA thx..ill keep messing with it

Rolo
Post 9 made on Tuesday August 8, 2006 at 19:17
The8thst
Long Time Member
Joined:
Posts:
October 2004
364
Just wrap your code with the 'pre' html tag and it will preserve all formatting. i.e.
< p r e > code text example < / p r e >
note: remove all the spaces from the above tags. They are only there to get the tags to display.


BUTTON_EVENT [dvTP,3]//Multiple Strings One Carriage REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}


Post 10 made on Tuesday August 8, 2006 at 22:32
Proggieus
Long Time Member
Joined:
Posts:
October 2005
434
On August 8, 2006 at 19:17, The8thst said...
Just wrap your code with the 'pre' html tag and
it will preserve all formatting. i.e.
< p r e > code text example < / p r e >

note: remove all the spaces from the above tags.
They are only there to get the tags to display.


BUTTON_EVENT [dvTP,3]//Multiple Strings One Carriage
REturns
{
Push:
{
SEND_STRING dvSamsungDLP,"$08,$01,$00,$00,$00,$00,$E6"
SEND_STRING dvSamsungDLP,"$08,$02,$00,$00,$00,$00,$E5"
SEND_STRING dvSamsungDLP,"$08,$03,$00,$00,$00,$00,$E4"
SEND_STRING dvSamsungDLP,"$04,$12,$00,$D9,$0D"
}
}


I need to pay you more

Just kidding dont get any ideas
OP | Post 11 made on Wednesday September 20, 2006 at 11:11
rolo
Long Time Member
Joined:
Posts:
January 2003
241
I Never could actually get this to work.

Has anyone actually made one of these TV's work 232?

Rolo
Post 12 made on Wednesday September 20, 2006 at 16:13
PHSJason
Advanced Member
Joined:
Posts:
December 2002
994
I fought with one for about three hours and couldn't get it to work. One thing I came across was that in the service menu. the 232 port was set to service out of the box. I had to change it to accept 232 control. From that point, All I got from the TV were the error codes.
OP | Post 13 made on Wednesday September 20, 2006 at 22:51
rolo
Long Time Member
Joined:
Posts:
January 2003
241
How do you get into the service menu on the HLS-5687W?
Post 14 made on Thursday September 21, 2006 at 10:43
PHSJason
Advanced Member
Joined:
Posts:
December 2002
994
turn the set on, wait until it warms up, press power.......mute...1.....8.....2.....power to access the service menu. may take a few tries. Are you getting responses from the TV? On the set that I had, I wasn't even getting a response to any commands. After changing the comm port setting the Service menu, I got replies, but none of the codes would work.
OP | Post 15 made on Friday September 22, 2006 at 10:33
rolo
Long Time Member
Joined:
Posts:
January 2003
241
Do you get "FA" then later "FB" then sometimes like "FAE6"?

Thats what I am getting....

I went to site with excitement after your service menu post, found in the menu where to turn rs232 from "Debug" to "RS232" and got the same garbage as before...

Are you getting the same stuff???

Later

Rolo
Page 1 of 2


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse